package com.example.annolog.controller;

import com.example.annolog.anno.Log;
import com.example.annolog.domain.City;
import com.example.annolog.resp.CityResp;
import com.example.annolog.service.CityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class CityController {

    @Autowired
    private CityService cityService;

    @Log(remark = "查询城市")//step4:使用
    @PostMapping("/city/queryList")
    public List<City> queryList(){
        return null;
      //return cityService.queryList();
    }

}
